<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.*" %>
<html>
<head>
    <title>接收数组请求参数</title>
</head>
<body>
<%
    request.setCharacterEncoding("UTF-8"); // 设置请求编码
    response.setCharacterEncoding("UTF-8"); // 设置响应编码
    String msg = request.getParameter("msg"); // 接收请求参数
    String[] receiver = request.getParameterValues("receiver"); // 接收请求参数
%>
<h1>消息内容：<%=msg%></h1>
<h1>消息用户：<%=Arrays.toString(receiver)%></h1>
</body>
</html>
